import request from '@/utils/request';

export function index(query) {
  return request({
    url: '/main/fundManagement/index',
    method: 'get',
    params: query
  });
}

export function platformRecharge(data) {
  return request({
    url: '/main/fundManagement/platform/recharge/'+data,
    method: 'put',
  })
}

export function platformTake(data) {
  return request({
    url: '/main/fundManagement/platform/take/'+data,
    method: 'put',
  })
}

export function platformList(query) {
  return request({
    url: '/main/fundManagement/platform/list',
    method: 'get',
    params: query
  })
}

export function commonRecharge(data) {
  return request({
    url: '/main/fundManagement/common/recharge/'+data,
    method: 'put',
  })
}

export function commonTake(data) {
  return request({
    url: '/main/fundManagement/common/take/'+data,
    method: 'put',
  })
}
